//
//  DYJMovieScoreView.m
//  Piece
//
//  Created by dllo on 16/6/12.
//  Copyright © 2016年 Northeast Dianli University. All rights reserved.
//

#import "DYJMovieScoreView.h"

@implementation DYJMovieScoreView
- (instancetype)init
{
    self = [super init];
    if (self) {
        self.scoreLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 120)];
        self.scoreLabel.textColor = [UIColor colorWithRed:1.00 green:0.35 blue:0.38 alpha:1.00];
        self.scoreLabel.font = [UIFont fontWithName:@"Bradley Hand" size:45.0];
        [self addSubview:_scoreLabel];
        
        self.scoreLineImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 85, 67, 5)];
        self.scoreLineImageView.image = [UIImage imageNamed:@"redline"];
        [self addSubview:_scoreLineImageView];
        
        self.transform = CGAffineTransformRotate(self.transform, - M_PI / 12);
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
